package com.dafeng.www;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 34255
 * Date: 2024-06-12
 * Time: 17:13
 */
public class B extends A{
    public int a = 3;
    public int b = 4;

    public static int e = 6;

    public void test1(){
        System.out.println(super.a);
        System.out.println("test3()...");
    }
    public static void test2(){
//        System.out.println(super.a);
        System.out.println("test4()...");
    }

    public void func1(){//不同名的情况
        System.out.println(super.a);
        System.out.println(super.b);
//        System.out.println(this.c);
//        System.out.println(this.d);
        System.out.println(super.e);
//        System.out.println(this.f);

        super.test1();
        super.test2();
//        this.test3();
//        test4();
//        System.out.println(g);
    }
}
